import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'
Vue.use(Vuex)
// 创建一个仓库
const store = new Vuex.Store({
  state,
  actions,
  mutations,
  getters
  /* getters: {
    doubleNum: state => {
      return state.num * 2
    }
  } */
})
export default store
